//
// Created by wujehy on 18-11-14.
//

#ifndef RUNCAR_STEERING_H
#define RUNCAR_STEERING_H
#define uchar unsigned char
/**
 * 说明  pin9 是 s2 9 是s1
 *
 *
 *
 * */

class Steering {
public:
    //四项操作
    void Up();//向上
    void Down();//向下
    void Left();//
    void Right();
    void Init() ;//初始化

    Steering *MoreLevel();
    Steering *HighLevel();
    Steering *MiddleLevel();
    Steering *LowLevel();

    void setMon_X(unsigned char Mon_X);

    void setMon_Y(unsigned char Mon_Y);

    void setLevel(unsigned char level);

    Steering *getObj() const;

private:
    uchar Mon_X;
    uchar Mon_Y;
    uchar level;
    void DoX();
    void DoY();
//    Steering *obj;

};


#endif //RUNCAR_STEERING_H
